# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Tools for testing the inotify-extension in the linux kernel"
HOMEPAGE="http://www.kernel.org/pub/linux/kernel/people/rml/inotify/"
SRC_URI="http://www.kernel.org/pub/linux/kernel/people/rml/inotify/utils/${P}.tar.bz2"

LICENSE="GPL"
SLOT="0.21"
KEYWORDS="~x86"
IUSE=""

DEPEND="sys-kernel/gentoo-sources"
RDEPEND="${DEPEND}"



src_compile() {
	emake clean || die "Could not clean"
	emake || die "Could not make"
}

src_install() {
	insinto /usr/include/${P}
	doins *.h

	mv inotify_test inotify_test-${PV}
	exeinto /usr/sbin/
	doexe inotify_test-${PV}
}
